public class test {
    public static void main(String[] args) {
        Integer a=300000;

        Integer b=300000;

        Integer c=30;

        Integer d=30;
        System.out.println(a.equals(b));
        System.out.println(a==b);   //false
        System.out.println(a==300000);

        System.out.println(d.equals(c));
        System.out.println(d==c);
        System.out.println(d==30);
        System.out.println(Integer.valueOf(300)==Integer.valueOf(300));
    }
}